package com.example.shape;

import com.example.color.Color;

/**
 * 抽象类
 * @author zhoujun
 * @date 2025/3/20 22:06
 */
public abstract  class Shape {
    //持有一个color类的引用,作为桥接
    protected Color color;

    public Shape(Color color) {
        this.color = color;
    }

    public abstract void draw();
}
